package com.ycz.springcloud.form;/*
 @author ycz
 @date 2021-07-18-17:21  
*/

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysRoleForm {
    private Integer id;
    /*
    角色
     */
    @NotNull(message = "角色不能为空")
    @Range(min = 1,max = 3,message = "范围为1-3")
    private Integer role;
    private String loginName;
}
